#include "stdafx.h"
#include "./luaex.h"
#include "./luathread.h"

LuaThread::LuaThread()
: m_luaSate(NULL)
{
	m_luaSate = lua_newthread(LuaEx::GetInstance().GetLuaState());
}

LuaThread::~LuaThread()
{
	m_luaSate = NULL;
}

lua_State* LuaThread::GetThreadState()
{
	return m_luaSate;
}